package com.qst.rongxiaotong.mapper;

import com.qst.rongxiaotong.pojo.Question;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface QuestionMapper {

    //增加问答
    int insertSelective(Question question);

    //条件查询问答信息
    Question selectByPrimaryKey(Integer id);


    //查询所有问答信息
    List<Question> selectAllQuestion();

    //根据id查询问答信息
    List<Question> selectAllByKeys(@Param("keys")String keys);

    //根据Id修改问答信息
    int updateByPrimaryKeySelective(Question question);

    //根据用户查询询问情况
    List<Question> selectByQuestion(Question question);

    //根据Id删除问答信息
    int deleteByPrimaryKey(Integer id);











}
